<template>
    <div class="container">
        <header>
            <slot name="header"></slot>
        </header>
        <main>
            <slot></slot>
        </main>
        <footer>
            <slot name="footer"></slot>
        </footer>
    </div>
</template>
    
<script setup lang='ts'>
const emit= defineEmits<{
    (e: 'click', str: string): void
}>()

const clickThis = () => {
    emit('click', '还可以传具体值' )
}
</script>
    
<style>
    
</style>